Optimal. Leaf size=126 \[ \frac {b e \left (6 c^2 d+e\right ) \sqrt {1-c^2 x^2}}{3 c^3}-\frac {b e^2 \left (1-c^2 x^2\right )^{3/2}}{9 c^3}-\frac {d^2 (a+b \text {ArcSin}(c x))}{x}+2 d e x (a+b \text {ArcSin}(c x))+\frac {1}{3} e^2 x^3 (a+b \text {ArcSin}(c x))-b c d^2 \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {276, 4815,
1265, 911, 1167, 214} \begin {gather*} -\frac {d^2 (a+b \text {ArcSin}(c x))}{x}+2 d e x (a+b \text {ArcSin}(c x))+\frac {1}{3} e^2 x^3 (a+b \text {ArcSin}(c x))-b c d^2 \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )+\frac {b e \sqrt {1-c^2 x^2} \left (6 c^2 d+e\right )}{3 c^3}-\frac {b e^2 \left (1-c^2 x^2\right )^{3/2}}{9 c^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 276
Rule 911
Rule 1167
Rule 1265
Rule 4815
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^2 \left (a+b \sin ^{-1}(c x)\right )}{x^2} \, dx &=-\frac {d^2 \left (a+b \sin ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sin ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sin ^{-1}(c x)\right )-(b c) \int \frac {-d^2+2 d e x^2+\frac {e^2 x^4}{3}}{x \sqrt {1-c^2 x^2}} \, dx\\ &=-\frac {d^2 \left (a+b \sin ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sin ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sin ^{-1}(c x)\right )-\frac {1}{2} (b c) \text {Subst}\left (\int \frac {-d^2+2 d e x+\frac {e^2 x^2}{3}}{x \sqrt {1-c^2 x}} \, dx,x,x^2\right )\\ &=-\frac {d^2 \left (a+b \sin ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sin ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac {b \text {Subst}\left (\int \frac {\frac {-c^4 d^2+2 c^2 d e+\frac {e^2}{3}}{c^4}-\frac {\left (2 c^2 d e+\frac {2 e^2}{3}\right ) x^2}{c^4}+\frac {e^2 x^4}{3 c^4}}{\frac {1}{c^2}-\frac {x^2}{c^2}} \, dx,x,\sqrt {1-c^2 x^2}\right )}{c}\\ &=-\frac {d^2 \left (a+b \sin ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sin ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac {b \text {Subst}\left (\int \left (\frac {1}{3} e \left (6 d+\frac {e}{c^2}\right )-\frac {e^2 x^2}{3 c^2}-\frac {d^2}{\frac {1}{c^2}-\frac {x^2}{c^2}}\right ) \, dx,x,\sqrt {1-c^2 x^2}\right )}{c}\\ &=\frac {b e \left (6 c^2 d+e\right ) \sqrt {1-c^2 x^2}}{3 c^3}-\frac {b e^2 \left (1-c^2 x^2\right )^{3/2}}{9 c^3}-\frac {d^2 \left (a+b \sin ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sin ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sin ^{-1}(c x)\right )-\frac {\left (b d^2\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{c^2}-\frac {x^2}{c^2}} \, dx,x,\sqrt {1-c^2 x^2}\right )}{c}\\ &=\frac {b e \left (6 c^2 d+e\right ) \sqrt {1-c^2 x^2}}{3 c^3}-\frac {b e^2 \left (1-c^2 x^2\right )^{3/2}}{9 c^3}-\frac {d^2 \left (a+b \sin ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sin ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sin ^{-1}(c x)\right )-b c d^2 \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 129, normalized size = 1.02 \begin {gather*} \frac {1}{9} \left (-\frac {9 a d^2}{x}+18 a d e x+3 a e^2 x^3+\frac {b e \sqrt {1-c^2 x^2} \left (2 e+c^2 \left (18 d+e x^2\right )\right )}{c^3}+\frac {3 b \left (-3 d^2+6 d e x^2+e^2 x^4\right ) \text {ArcSin}(c x)}{x}+9 b c d^2 \log (x)-9 b c d^2 \log \left (1+\sqrt {1-c^2 x^2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 168, normalized size = 1.33
method | result | size |
derivativedivides | \(c \left (\frac {a \left (2 c^{3} d e x +\frac {e^{2} c^{3} x^{3}}{3}-\frac {c^{3} d^{2}}{x}\right )}{c^{4}}+\frac {b \left (2 \arcsin \left (c x \right ) c^{3} d e x +\frac {\arcsin \left (c x \right ) e^{2} c^{3} x^{3}}{3}-\frac {\arcsin \left (c x \right ) c^{3} d^{2}}{x}+2 c^{2} d e \sqrt {-c^{2} x^{2}+1}-\frac {e^{2} \left (-\frac {c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{3}-\frac {2 \sqrt {-c^{2} x^{2}+1}}{3}\right )}{3}-c^{4} d^{2} \arctanh \left (\frac {1}{\sqrt {-c^{2} x^{2}+1}}\right )\right )}{c^{4}}\right )\) | \(168\) |
default | \(c \left (\frac {a \left (2 c^{3} d e x +\frac {e^{2} c^{3} x^{3}}{3}-\frac {c^{3} d^{2}}{x}\right )}{c^{4}}+\frac {b \left (2 \arcsin \left (c x \right ) c^{3} d e x +\frac {\arcsin \left (c x \right ) e^{2} c^{3} x^{3}}{3}-\frac {\arcsin \left (c x \right ) c^{3} d^{2}}{x}+2 c^{2} d e \sqrt {-c^{2} x^{2}+1}-\frac {e^{2} \left (-\frac {c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{3}-\frac {2 \sqrt {-c^{2} x^{2}+1}}{3}\right )}{3}-c^{4} d^{2} \arctanh \left (\frac {1}{\sqrt {-c^{2} x^{2}+1}}\right )\right )}{c^{4}}\right )\) | \(168\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 151, normalized size = 1.20 \begin {gather*} \frac {1}{3} \, a x^{3} e^{2} - {\left (c \log \left (\frac {2 \, \sqrt {-c^{2} x^{2} + 1}}{{\left | x \right |}} + \frac {2}{{\left | x \right |}}\right ) + \frac {\arcsin \left (c x\right )}{x}\right )} b d^{2} + 2 \, a d x e + \frac {1}{9} \, {\left (3 \, x^{3} \arcsin \left (c x\right ) + c {\left (\frac {\sqrt {-c^{2} x^{2} + 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1}}{c^{4}}\right )}\right )} b e^{2} + \frac {2 \, {\left (c x \arcsin \left (c x\right ) + \sqrt {-c^{2} x^{2} + 1}\right )} b d e}{c} - \frac {a d^{2}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.07, size = 170, normalized size = 1.35 \begin {gather*} \frac {6 \, a c^{3} x^{4} e^{2} - 9 \, b c^{4} d^{2} x \log \left (\sqrt {-c^{2} x^{2} + 1} + 1\right ) + 9 \, b c^{4} d^{2} x \log \left (\sqrt {-c^{2} x^{2} + 1} - 1\right ) + 36 \, a c^{3} d x^{2} e - 18 \, a c^{3} d^{2} + 6 \, {\left (b c^{3} x^{4} e^{2} + 6 \, b c^{3} d x^{2} e - 3 \, b c^{3} d^{2}\right )} \arcsin \left (c x\right ) + 2 \, {\left (18 \, b c^{2} d x e + {\left (b c^{2} x^{3} + 2 \, b x\right )} e^{2}\right )} \sqrt {-c^{2} x^{2} + 1}}{18 \, c^{3} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.42, size = 167, normalized size = 1.33 \begin {gather*} - \frac {a d^{2}}{x} + 2 a d e x + \frac {a e^{2} x^{3}}{3} + b c d^{2} \left (\begin {cases} - \operatorname {acosh}{\left (\frac {1}{c x} \right )} & \text {for}\: \frac {1}{\left |{c^{2} x^{2}}\right |} > 1 \\i \operatorname {asin}{\left (\frac {1}{c x} \right )} & \text {otherwise} \end {cases}\right ) - \frac {b c e^{2} \left (\begin {cases} - \frac {x^{2} \sqrt {- c^{2} x^{2} + 1}}{3 c^{2}} - \frac {2 \sqrt {- c^{2} x^{2} + 1}}{3 c^{4}} & \text {for}\: c \neq 0 \\\frac {x^{4}}{4} & \text {otherwise} \end {cases}\right )}{3} - \frac {b d^{2} \operatorname {asin}{\left (c x \right )}}{x} + 2 b d e \left (\begin {cases} 0 & \text {for}\: c = 0 \\x \operatorname {asin}{\left (c x \right )} + \frac {\sqrt {- c^{2} x^{2} + 1}}{c} & \text {otherwise} \end {cases}\right ) + \frac {b e^{2} x^{3} \operatorname {asin}{\left (c x \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 4243 vs.
\(2 (114) = 228\).
time = 1.92, size = 4243, normalized size = 33.67 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \left \{\begin {array}{cl} \frac {a\,\left (-3\,d^2+6\,d\,e\,x^2+e^2\,x^4\right )}{3\,x}+b\,e^2\,\left (\frac {\sqrt {\frac {1}{c^2}-x^2}\,\left (\frac {2}{c^2}+x^2\right )}{9}+\frac {x^3\,\mathrm {asin}\left (c\,x\right )}{3}\right )-b\,c\,d^2\,\mathrm {atanh}\left (\frac {1}{\sqrt {1-c^2\,x^2}}\right )-\frac {b\,d^2\,\mathrm {asin}\left (c\,x\right )}{x}+\frac {2\,b\,d\,e\,\left (\sqrt {1-c^2\,x^2}+c\,x\,\mathrm {asin}\left (c\,x\right )\right )}{c} & \text {\ if\ \ }0<c\\ \int \frac {\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )\,{\left (e\,x^2+d\right )}^2}{x^2} \,d x & \text {\ if\ \ }\neg 0<c \end {array}\right . \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________